package com.yima.baseproj.module.app.lunbotu.model;

import com.yima.baseproj.config.validate.constraint.enumvalid.EnumValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class AppLunbotuAddOrEditParamModel {

    @ApiModelProperty(value = "id")
    private String id;

    @NotBlank(message = "图片不能为空")
    @ApiModelProperty(value = "图片")
    private String imgUrl;

    @ApiModelProperty(value = "内容类型")
    @EnumValid(target = AppLunbotuContentTypeEnum.class, message = "内容类型不符合规定")
    private String contentType;

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "状态：1.展示；0.不展示")
    private Integer state;

    @ApiModelProperty(value = "标题")
    private String name;

    @ApiModelProperty(value = "sort")
    private Integer sort;
}